CC=/home/G++/bin/arm-none-linux-gnueabi-gcc

export ARCH_CPU=arm
LINUXPATH=/home/linux
roofs=/home/rootfs



EXTRA_CFLAGS += -I$(LINUXPATH)/ -I$(LINUXPATH)/drivers/mxc  

CURDIR=$(PWD)/


TARGET_ARCH= -DLINUX

CFLAGS= -g  -pthread   -Wall   $(TARGET_ARCH) -I$(LINUXPATH)/include  -I$(roofs)/usr/include

OBJECTS= main.o clilib.o clilibapi.o oslite.o amethyst.o crc16.o capture.o 
	
emzatest.out  :  $(OBJECTS) 
	$(CC) -g -ldl -pthread -L/home/rootfs/usr/lib  -o $@ $(OBJECTS)


LINK_TARGET : emzatest.out 


%.o:  %.c 
	$(CC) -g  $(CFLAGS)  -pthread   -Wall  -DLINUX -o $@ -c $<	
	
%.o:  %.cpp 
	$(CC) -g   $(CFLAGS) -pthread   -Wall   -DLINUX -o $@ -c $<	





	
all : $(LINK_TARGET)
	
clean :
	 rm *.o
	 rm *.out
	
	 
	
